#ifndef MYBUTTONPLUGIN_H
#define MYBUTTONPLUGIN_H

#include <QObject>
#include <QDesignerCustomWidgetInterface>

class MyButtonPlugin : public QObject, public QDesignerCustomWidgetInterface
{
    Q_OBJECT
    Q_INTERFACES(QDesignerCustomWidgetInterface)

public:
    explicit MyButtonPlugin(QObject *parent = nullptr);
    QWidget *createWidget(QWidget *parent) override;
    QString name() const override { return "MyButton"; }
    QString group() const override { return "Custom Controls"; }
    QIcon icon() const override { return QIcon(); }
    QString toolTip() const override { return "Custom Button"; }
    QString whatsThis() const override { return "Custom QPushButton"; }
    bool isContainer() const override { return false; }
    QString includeFile() const override { return "mybutton.h"; }
};
#endif // MYBUTTONPLUGIN_H
